import logging
def set_log():
    logging.basicConfig(filename="statusswitch.txt",filemode='w+',
                        level=logging.INFO
                        ,format="%(levelname)s -> "
                                "%(filename)s -> "
                                "%(funcName)s -> "
                                "%(message)s")